<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ZJM
  Date: 2024/4/21
  Time: 21:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Title</title>
</head>
<body>
<%
  request.setAttribute("height", 200);
%>

<c:choose>
  <c:when test="${requestScope.heitht >100}">
    <h1>大于100</h1>
  </c:when>
  <c:when test="${requestScope.height > 50}">
    <h1>大于50</h1>
  </c:when>
  <c:otherwise>
    <c:choose>
      <c:when test="${requestScope.height > 40}">
        <h1>其他1</h1>
      </c:when>
      <c:when test="${requestScope.height >30}">
        <h1>其他2</h1>
      </c:when>
    </c:choose>
  </c:otherwise>
</c:choose>
</body>
</html>
